package com.jiang.vo;

import java.io.Serializable;
import java.util.Date;

@SuppressWarnings("serial")
public class News implements Serializable{
// 记住要序列化，要不使用MyBatis的时候查询转换会出问题

	private Integer nid;
	private String title;
	private Date pubdate;
	private String content;
	
	public News(){
		
	}
	
	public News(Integer nid, String title, Date pubdate, String content) {
		super();
		this.nid = nid;
		this.title = title;
		this.pubdate = pubdate;
		this.content = content;
	}
	
	
	public Integer getNid() {
		return nid;
	}
	public void setNid(Integer nid) {
		this.nid = nid;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Date getPubdate() {
		return pubdate;
	}
	public void setPubdate(Date pubdate) {
		this.pubdate = pubdate;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}

	@Override
	public String toString() {
		return "News [nid=" + nid + ", title=" + title + ", pubdate=" + pubdate + ", content=" + content + "]";
	}
	
	
	
}
